package org.lisen.condition;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Hello world!
 */
public class App {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext();
        annotationConfigApplicationContext.register(CommandConfig.class);
        annotationConfigApplicationContext.refresh();
        CommandCondition commandCondition = annotationConfigApplicationContext.getBean(CommandCondition.class);
        String command = commandCondition.getCommand();
        System.out.println(command);
    }
}
